package com.ibiaoke.marketing.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CouponExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart;

    protected int limitEnd;

    protected String groupByClause;

    public CouponExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause=groupByClause;
    }

    public String getGroupByClause() {
        return groupByClause;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCouponIdIsNull() {
            addCriterion("coupon_id is null");
            return (Criteria) this;
        }

        public Criteria andCouponIdIsNotNull() {
            addCriterion("coupon_id is not null");
            return (Criteria) this;
        }

        public Criteria andCouponIdEqualTo(Integer value) {
            addCriterion("coupon_id =", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotEqualTo(Integer value) {
            addCriterion("coupon_id <>", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThan(Integer value) {
            addCriterion("coupon_id >", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("coupon_id >=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThan(Integer value) {
            addCriterion("coupon_id <", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanOrEqualTo(Integer value) {
            addCriterion("coupon_id <=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdIn(List<Integer> values) {
            addCriterion("coupon_id in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotIn(List<Integer> values) {
            addCriterion("coupon_id not in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdBetween(Integer value1, Integer value2) {
            addCriterion("coupon_id between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotBetween(Integer value1, Integer value2) {
            addCriterion("coupon_id not between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponCodeIsNull() {
            addCriterion("coupon_code is null");
            return (Criteria) this;
        }

        public Criteria andCouponCodeIsNotNull() {
            addCriterion("coupon_code is not null");
            return (Criteria) this;
        }

        public Criteria andCouponCodeEqualTo(String value) {
            addCriterion("coupon_code =", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotEqualTo(String value) {
            addCriterion("coupon_code <>", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeGreaterThan(String value) {
            addCriterion("coupon_code >", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_code >=", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeLessThan(String value) {
            addCriterion("coupon_code <", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeLessThanOrEqualTo(String value) {
            addCriterion("coupon_code <=", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeLike(String value) {
            addCriterion("coupon_code like", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotLike(String value) {
            addCriterion("coupon_code not like", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeIn(List<String> values) {
            addCriterion("coupon_code in", values, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotIn(List<String> values) {
            addCriterion("coupon_code not in", values, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeBetween(String value1, String value2) {
            addCriterion("coupon_code between", value1, value2, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotBetween(String value1, String value2) {
            addCriterion("coupon_code not between", value1, value2, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNull() {
            addCriterion("coupon_name is null");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNotNull() {
            addCriterion("coupon_name is not null");
            return (Criteria) this;
        }

        public Criteria andCouponNameEqualTo(String value) {
            addCriterion("coupon_name =", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotEqualTo(String value) {
            addCriterion("coupon_name <>", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThan(String value) {
            addCriterion("coupon_name >", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_name >=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThan(String value) {
            addCriterion("coupon_name <", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThanOrEqualTo(String value) {
            addCriterion("coupon_name <=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLike(String value) {
            addCriterion("coupon_name like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotLike(String value) {
            addCriterion("coupon_name not like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameIn(List<String> values) {
            addCriterion("coupon_name in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotIn(List<String> values) {
            addCriterion("coupon_name not in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameBetween(String value1, String value2) {
            addCriterion("coupon_name between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotBetween(String value1, String value2) {
            addCriterion("coupon_name not between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andScopeTypeIsNull() {
            addCriterion("scope_type is null");
            return (Criteria) this;
        }

        public Criteria andScopeTypeIsNotNull() {
            addCriterion("scope_type is not null");
            return (Criteria) this;
        }

        public Criteria andScopeTypeEqualTo(Byte value) {
            addCriterion("scope_type =", value, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeNotEqualTo(Byte value) {
            addCriterion("scope_type <>", value, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeGreaterThan(Byte value) {
            addCriterion("scope_type >", value, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("scope_type >=", value, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeLessThan(Byte value) {
            addCriterion("scope_type <", value, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeLessThanOrEqualTo(Byte value) {
            addCriterion("scope_type <=", value, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeIn(List<Byte> values) {
            addCriterion("scope_type in", values, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeNotIn(List<Byte> values) {
            addCriterion("scope_type not in", values, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeBetween(Byte value1, Byte value2) {
            addCriterion("scope_type between", value1, value2, "scopeType");
            return (Criteria) this;
        }

        public Criteria andScopeTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("scope_type not between", value1, value2, "scopeType");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeIsNull() {
            addCriterion("receive_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeIsNotNull() {
            addCriterion("receive_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeEqualTo(Date value) {
            addCriterion("receive_begin_time =", value, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeNotEqualTo(Date value) {
            addCriterion("receive_begin_time <>", value, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeGreaterThan(Date value) {
            addCriterion("receive_begin_time >", value, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("receive_begin_time >=", value, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeLessThan(Date value) {
            addCriterion("receive_begin_time <", value, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeLessThanOrEqualTo(Date value) {
            addCriterion("receive_begin_time <=", value, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeIn(List<Date> values) {
            addCriterion("receive_begin_time in", values, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeNotIn(List<Date> values) {
            addCriterion("receive_begin_time not in", values, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeBetween(Date value1, Date value2) {
            addCriterion("receive_begin_time between", value1, value2, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveBeginTimeNotBetween(Date value1, Date value2) {
            addCriterion("receive_begin_time not between", value1, value2, "receiveBeginTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeIsNull() {
            addCriterion("receive_end_time is null");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeIsNotNull() {
            addCriterion("receive_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeEqualTo(Date value) {
            addCriterion("receive_end_time =", value, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeNotEqualTo(Date value) {
            addCriterion("receive_end_time <>", value, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeGreaterThan(Date value) {
            addCriterion("receive_end_time >", value, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("receive_end_time >=", value, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeLessThan(Date value) {
            addCriterion("receive_end_time <", value, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("receive_end_time <=", value, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeIn(List<Date> values) {
            addCriterion("receive_end_time in", values, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeNotIn(List<Date> values) {
            addCriterion("receive_end_time not in", values, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeBetween(Date value1, Date value2) {
            addCriterion("receive_end_time between", value1, value2, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("receive_end_time not between", value1, value2, "receiveEndTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeIsNull() {
            addCriterion("use_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeIsNotNull() {
            addCriterion("use_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeEqualTo(Date value) {
            addCriterion("use_begin_time =", value, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeNotEqualTo(Date value) {
            addCriterion("use_begin_time <>", value, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeGreaterThan(Date value) {
            addCriterion("use_begin_time >", value, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("use_begin_time >=", value, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeLessThan(Date value) {
            addCriterion("use_begin_time <", value, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeLessThanOrEqualTo(Date value) {
            addCriterion("use_begin_time <=", value, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeIn(List<Date> values) {
            addCriterion("use_begin_time in", values, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeNotIn(List<Date> values) {
            addCriterion("use_begin_time not in", values, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeBetween(Date value1, Date value2) {
            addCriterion("use_begin_time between", value1, value2, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseBeginTimeNotBetween(Date value1, Date value2) {
            addCriterion("use_begin_time not between", value1, value2, "useBeginTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeIsNull() {
            addCriterion("use_end_time is null");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeIsNotNull() {
            addCriterion("use_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeEqualTo(Date value) {
            addCriterion("use_end_time =", value, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeNotEqualTo(Date value) {
            addCriterion("use_end_time <>", value, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeGreaterThan(Date value) {
            addCriterion("use_end_time >", value, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("use_end_time >=", value, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeLessThan(Date value) {
            addCriterion("use_end_time <", value, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("use_end_time <=", value, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeIn(List<Date> values) {
            addCriterion("use_end_time in", values, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeNotIn(List<Date> values) {
            addCriterion("use_end_time not in", values, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeBetween(Date value1, Date value2) {
            addCriterion("use_end_time between", value1, value2, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andUseEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("use_end_time not between", value1, value2, "useEndTime");
            return (Criteria) this;
        }

        public Criteria andDurationDayIsNull() {
            addCriterion("duration_day is null");
            return (Criteria) this;
        }

        public Criteria andDurationDayIsNotNull() {
            addCriterion("duration_day is not null");
            return (Criteria) this;
        }

        public Criteria andDurationDayEqualTo(Integer value) {
            addCriterion("duration_day =", value, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayNotEqualTo(Integer value) {
            addCriterion("duration_day <>", value, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayGreaterThan(Integer value) {
            addCriterion("duration_day >", value, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("duration_day >=", value, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayLessThan(Integer value) {
            addCriterion("duration_day <", value, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayLessThanOrEqualTo(Integer value) {
            addCriterion("duration_day <=", value, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayIn(List<Integer> values) {
            addCriterion("duration_day in", values, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayNotIn(List<Integer> values) {
            addCriterion("duration_day not in", values, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayBetween(Integer value1, Integer value2) {
            addCriterion("duration_day between", value1, value2, "durationDay");
            return (Criteria) this;
        }

        public Criteria andDurationDayNotBetween(Integer value1, Integer value2) {
            addCriterion("duration_day not between", value1, value2, "durationDay");
            return (Criteria) this;
        }

        public Criteria andFullPriceIsNull() {
            addCriterion("full_price is null");
            return (Criteria) this;
        }

        public Criteria andFullPriceIsNotNull() {
            addCriterion("full_price is not null");
            return (Criteria) this;
        }

        public Criteria andFullPriceEqualTo(BigDecimal value) {
            addCriterion("full_price =", value, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceNotEqualTo(BigDecimal value) {
            addCriterion("full_price <>", value, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceGreaterThan(BigDecimal value) {
            addCriterion("full_price >", value, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("full_price >=", value, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceLessThan(BigDecimal value) {
            addCriterion("full_price <", value, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("full_price <=", value, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceIn(List<BigDecimal> values) {
            addCriterion("full_price in", values, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceNotIn(List<BigDecimal> values) {
            addCriterion("full_price not in", values, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("full_price between", value1, value2, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andFullPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("full_price not between", value1, value2, "fullPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceIsNull() {
            addCriterion("coupon_price is null");
            return (Criteria) this;
        }

        public Criteria andCouponPriceIsNotNull() {
            addCriterion("coupon_price is not null");
            return (Criteria) this;
        }

        public Criteria andCouponPriceEqualTo(BigDecimal value) {
            addCriterion("coupon_price =", value, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceNotEqualTo(BigDecimal value) {
            addCriterion("coupon_price <>", value, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceGreaterThan(BigDecimal value) {
            addCriterion("coupon_price >", value, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_price >=", value, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceLessThan(BigDecimal value) {
            addCriterion("coupon_price <", value, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_price <=", value, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceIn(List<BigDecimal> values) {
            addCriterion("coupon_price in", values, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceNotIn(List<BigDecimal> values) {
            addCriterion("coupon_price not in", values, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_price between", value1, value2, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andCouponPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_price not between", value1, value2, "couponPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCountIsNull() {
            addCriterion("total_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalCountIsNotNull() {
            addCriterion("total_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalCountEqualTo(Integer value) {
            addCriterion("total_count =", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountNotEqualTo(Integer value) {
            addCriterion("total_count <>", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountGreaterThan(Integer value) {
            addCriterion("total_count >", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_count >=", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountLessThan(Integer value) {
            addCriterion("total_count <", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountLessThanOrEqualTo(Integer value) {
            addCriterion("total_count <=", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountIn(List<Integer> values) {
            addCriterion("total_count in", values, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountNotIn(List<Integer> values) {
            addCriterion("total_count not in", values, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountBetween(Integer value1, Integer value2) {
            addCriterion("total_count between", value1, value2, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountNotBetween(Integer value1, Integer value2) {
            addCriterion("total_count not between", value1, value2, "totalCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountIsNull() {
            addCriterion("received_count is null");
            return (Criteria) this;
        }

        public Criteria andReceivedCountIsNotNull() {
            addCriterion("received_count is not null");
            return (Criteria) this;
        }

        public Criteria andReceivedCountEqualTo(Integer value) {
            addCriterion("received_count =", value, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountNotEqualTo(Integer value) {
            addCriterion("received_count <>", value, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountGreaterThan(Integer value) {
            addCriterion("received_count >", value, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("received_count >=", value, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountLessThan(Integer value) {
            addCriterion("received_count <", value, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountLessThanOrEqualTo(Integer value) {
            addCriterion("received_count <=", value, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountIn(List<Integer> values) {
            addCriterion("received_count in", values, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountNotIn(List<Integer> values) {
            addCriterion("received_count not in", values, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountBetween(Integer value1, Integer value2) {
            addCriterion("received_count between", value1, value2, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andReceivedCountNotBetween(Integer value1, Integer value2) {
            addCriterion("received_count not between", value1, value2, "receivedCount");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDelStatusIsNull() {
            addCriterion("del_status is null");
            return (Criteria) this;
        }

        public Criteria andDelStatusIsNotNull() {
            addCriterion("del_status is not null");
            return (Criteria) this;
        }

        public Criteria andDelStatusEqualTo(Byte value) {
            addCriterion("del_status =", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotEqualTo(Byte value) {
            addCriterion("del_status <>", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusGreaterThan(Byte value) {
            addCriterion("del_status >", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("del_status >=", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusLessThan(Byte value) {
            addCriterion("del_status <", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusLessThanOrEqualTo(Byte value) {
            addCriterion("del_status <=", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusIn(List<Byte> values) {
            addCriterion("del_status in", values, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotIn(List<Byte> values) {
            addCriterion("del_status not in", values, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusBetween(Byte value1, Byte value2) {
            addCriterion("del_status between", value1, value2, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("del_status not between", value1, value2, "delStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andPriceTypeIsNull() {
            addCriterion("price_type is null");
            return (Criteria) this;
        }

        public Criteria andPriceTypeIsNotNull() {
            addCriterion("price_type is not null");
            return (Criteria) this;
        }

        public Criteria andPriceTypeEqualTo(Byte value) {
            addCriterion("price_type =", value, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeNotEqualTo(Byte value) {
            addCriterion("price_type <>", value, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeGreaterThan(Byte value) {
            addCriterion("price_type >", value, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("price_type >=", value, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeLessThan(Byte value) {
            addCriterion("price_type <", value, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeLessThanOrEqualTo(Byte value) {
            addCriterion("price_type <=", value, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeIn(List<Byte> values) {
            addCriterion("price_type in", values, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeNotIn(List<Byte> values) {
            addCriterion("price_type not in", values, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeBetween(Byte value1, Byte value2) {
            addCriterion("price_type between", value1, value2, "priceType");
            return (Criteria) this;
        }

        public Criteria andPriceTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("price_type not between", value1, value2, "priceType");
            return (Criteria) this;
        }

        public Criteria andCouponGroupIsNull() {
            addCriterion("coupon_group is null");
            return (Criteria) this;
        }

        public Criteria andCouponGroupIsNotNull() {
            addCriterion("coupon_group is not null");
            return (Criteria) this;
        }

        public Criteria andCouponGroupEqualTo(String value) {
            addCriterion("coupon_group =", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupNotEqualTo(String value) {
            addCriterion("coupon_group <>", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupGreaterThan(String value) {
            addCriterion("coupon_group >", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_group >=", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupLessThan(String value) {
            addCriterion("coupon_group <", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupLessThanOrEqualTo(String value) {
            addCriterion("coupon_group <=", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupLike(String value) {
            addCriterion("coupon_group like", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupNotLike(String value) {
            addCriterion("coupon_group not like", value, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupIn(List<String> values) {
            addCriterion("coupon_group in", values, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupNotIn(List<String> values) {
            addCriterion("coupon_group not in", values, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupBetween(String value1, String value2) {
            addCriterion("coupon_group between", value1, value2, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andCouponGroupNotBetween(String value1, String value2) {
            addCriterion("coupon_group not between", value1, value2, "couponGroup");
            return (Criteria) this;
        }

        public Criteria andUseTypeIsNull() {
            addCriterion("use_type is null");
            return (Criteria) this;
        }

        public Criteria andUseTypeIsNotNull() {
            addCriterion("use_type is not null");
            return (Criteria) this;
        }

        public Criteria andUseTypeEqualTo(Integer value) {
            addCriterion("use_type =", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeNotEqualTo(Integer value) {
            addCriterion("use_type <>", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeGreaterThan(Integer value) {
            addCriterion("use_type >", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("use_type >=", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeLessThan(Integer value) {
            addCriterion("use_type <", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeLessThanOrEqualTo(Integer value) {
            addCriterion("use_type <=", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeIn(List<Integer> values) {
            addCriterion("use_type in", values, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeNotIn(List<Integer> values) {
            addCriterion("use_type not in", values, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeBetween(Integer value1, Integer value2) {
            addCriterion("use_type between", value1, value2, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("use_type not between", value1, value2, "useType");
            return (Criteria) this;
        }

        public Criteria andCanUseIdIsNull() {
            addCriterion("can_use_id is null");
            return (Criteria) this;
        }

        public Criteria andCanUseIdIsNotNull() {
            addCriterion("can_use_id is not null");
            return (Criteria) this;
        }

        public Criteria andCanUseIdEqualTo(Integer value) {
            addCriterion("can_use_id =", value, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdNotEqualTo(Integer value) {
            addCriterion("can_use_id <>", value, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdGreaterThan(Integer value) {
            addCriterion("can_use_id >", value, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("can_use_id >=", value, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdLessThan(Integer value) {
            addCriterion("can_use_id <", value, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdLessThanOrEqualTo(Integer value) {
            addCriterion("can_use_id <=", value, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdIn(List<Integer> values) {
            addCriterion("can_use_id in", values, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdNotIn(List<Integer> values) {
            addCriterion("can_use_id not in", values, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdBetween(Integer value1, Integer value2) {
            addCriterion("can_use_id between", value1, value2, "canUseId");
            return (Criteria) this;
        }

        public Criteria andCanUseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("can_use_id not between", value1, value2, "canUseId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}